﻿<Window x:Class="DbDoc.PowerDoc.Views.CommentHistory"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Comments History" Height="600" Width="600" ShowInTaskbar="False" Icon="/PowerDoc;component/dbdoc.ico">
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="30"     />
            <RowDefinition Height="30"     />
            <RowDefinition Height="30*"     />
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding HeaderMessage}" Grid.Column="0" Grid.Row="0" Style="{StaticResource HeaderText2}" Grid.ColumnSpan="3">
        </TextBlock>
        
        <DataGrid Grid.Row="2" 
                   CanUserAddRows="False"
                          CanUserDeleteRows="False" 
                  AutoGenerateColumns="False"
                  ItemsSource="{Binding Comments}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Text}" Width="300*" Header="Comment" IsReadOnly="True" />
                <DataGridTextColumn Binding="{Binding ModifiedBy}" Width="150" Header="Modified By"  IsReadOnly="True" />
                <DataGridTextColumn Binding="{Binding ModifiedOn}" Width="150" Header="Modified On"  IsReadOnly="True" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
